<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title>我要好发网 </title>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <link href="/www/css/a.css" rel="stylesheet" type="text/css"/>
  <script type="text/javascript" src="/www/js/jquery.js"></script>
  <script type="text/javascript" src="/www/js/w.js"></script>
 </head>

 <body>
	<div id="header" class="clearfix">
		<div class="lw">
			<div class="top clearfix">
				<a class="logo left" href="/">我要好发网</a>
				<a href="javascript:" onclick="addToFavorite()" title="加入收藏夹" class="favorite right">收藏我要好发网</a>
			</div>
			<pre>
<h1 class="pro-title"><?=$p->brand?> - <?=$p->name?></h1><a href="/admin/production">返回</a></pre>
		</div>
	</div>
	<div id="wrap" class="lw clearfix ab">
		<ul class="menu1 clearfix">
			<li class="<?if($point_type == 1)echo 'on';else echo 'off';?>"><a href="/admin/reply/index/<?=$p->id?>/1">商品咨询</a></li>
			<li class="<?if($point_type == 2)echo 'on';else echo 'off';?>"><a href="/admin/rese/action/zf/<?=$p->id?>">支付方式</a></li>
			<li class="<?if($point_type == 3)echo 'on';else echo 'off';?>"><a href="/admin/rese/action/ps/<?=$p->id?>">配送方式</a></li>
			<li class="<?if($point_type == 4)echo 'on';else echo 'off';?>"><a href="/admin/rese/action/ss/<?=$p->id?>">售后服务</a></li>
			<li class="<?if($point_type == 5)echo 'on';else echo 'off';?>"><a href="/admin/rese/action/cj/<?=$p->id?>">常见问题</a></li>
			<li class="add"><a href="#zixun-form">发表咨询</a></li>
		</ul>
		
		<?if($success):?><div class="success"><?=$success?></div><?endif?>
		<div class="form-error"><?=$error?></div>
			<?if($c):?>
			<?foreach($c as $com):?>
				<div class="qa-list clearfix" id="qa-list<?=$com->id?>">
					<p class="time">网友：<?=$com->uname?> <?=$com->time?></p>
					<div class="q-left left"></div>
					<p class="q-right left">咨询内容： <?=$com->content?></p>
					<div class="clearfix"></div>
					<?if(isset($com->reply)):?>
						<div id="reply-text-<?=$com->id?>">
							<div class="a-left left"></div>
							<p class="a-right left">客服回复：<?=$com->reply->content?> 【<a href="javascript:;" id="edit-button<?=$com->id?>"onclick="edit_reply(<?=$com->id?>,'<?=$com->reply->content?>')">编辑</a>】	</p>
						</div>
					<?endif?>
				</div>
				<?if(!isset($com->reply)):?>
				<form action="post" id="reply<?=$com->id?>" method="post" onsubmit="return false;">
					<div class="form-item clearfix">
						<div class="form-left">
							<label for="content<?=$com->id?>">回复他</label>
						</div>
						<div class="form-right">
							<div class="form-right-label">
								
							</div>
							<div class="form-right-text off">
								<input type="text" class="text w1" id="content<?=$com->id?>" name="content" />
								<span class="form-border-right"></span>
								<input type="submit" class="reply-button" onclick="reply(<?=$com->id?>)" value="回复" />
							</div>
						</div>
					</div>
				</form>
				<?endif?>
			<?endforeach;endif;?>
			<p>共<?=$num?>条评论</p>

			<?php echo $page;?>
		
	</div>
<?$this->load->view('footer.tpl');?>